import request from '@/utils/request'

// 查询服务器资源管理列表
export function listServerManagement(query) {
  return request({
    url: '/ai/serverManagement/list',
    method: 'get',
    params: query
  })
}

// 查询服务器资源管理详细
export function getServerManagement(serverId) {
  return request({
    url: '/ai/serverManagement/' + serverId,
    method: 'get'
  })
}

// 新增服务器资源管理
export function addServerManagement(data) {
  return request({
    url: '/ai/serverManagement',
    method: 'post',
    data: data
  })
}

// 修改服务器资源管理
export function updateServerManagement(data) {
  return request({
    url: '/ai/serverManagement',
    method: 'put',
    data: data
  })
}

// 删除服务器资源管理
export function delServerManagement(serverId) {
  return request({
    url: '/ai/serverManagement/' + serverId,
    method: 'delete'
  })
}
